class MysqlRoutine < ActiveRecord::Base
  set_table_name :proc

  before_create :set_created
  before_update :set_modified
  
  # single inheritance uses a 'type' column
  # so does mysql.proc
  # override it 
  def self.inheritance_column
  end
  
  private
    def set_created
      self.created = Time.now
      self.modified = Time.now
    end
    
    def set_modified
      self.modified = Time.now
    end
end

MysqlRoutine.establish_connection(:for_migrating_stored_routines)
